import {useNavigate} from 'react-router-dom'
export default function A3() {
    let navigate = useNavigate();
    
    return <div>
        A3
        {/* <NavLink to='/c'>点我跳转到c</NavLink> */}
        <button onClick={()=>{
            /* navigate({
                pathname:'/c',
                search:'?name=1&age=18',
            }); */
            navigate('/c',{
                state:{
                    name:'zhufeng',
                    age:18
                }
            })
        }}>点我跳转到c</button>
        
    </div>
}
